<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增【请填写功能名称】')"/>
            <th:block th:include="include :: datetimepicker-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-log-add">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">导入用户
                                ：</label>
                            <div class="col-sm-8">
                                <input name="importUser" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">导入时间
                                ：</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <input name="importTime" class="form-control" placeholder="yyyy-MM-dd"
                                           type="text">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">导入类型
                                ：</label>
                            <div class="col-sm-8">
                                <select name="importType" class="form-control m-b">
                                    <option value="">所有</option>
                                </select>
                                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">文件名
                                ：</label>
                            <div class="col-sm-8">
                                <input name="fileName" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">导入结果(0:失败,>0 更改条数)
                                ：</label>
                            <div class="col-sm-8">
                                <input name="result" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">导入状态(0:未导入,1:已导入)
                                ：</label>
                            <div class="col-sm-8">
                                <input name="importState" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">所属路段
                                ：</label>
                            <div class="col-sm-8">
                                <input name="roadSectionId" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">上/下行(0:上,1:下)
                                ：</label>
                            <div class="col-sm-8">
                                <input name="upOrDown" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">车道
                                ：</label>
                            <div class="col-sm-8">
                                <input name="xlane" class="form-control" type="text">
                            </div>
                        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
        <th:block th:include="include :: datetimepicker-js"/>
<script th:inline="javascript">
    var prefix = ctx + "road/log"
    $("#form-log-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-log-add').serialize());
        }
    }

            $("input[name='importTime']").datetimepicker({
                format: "yyyy-mm-dd",
                minView: "month",
                autoclose: true
            });
</script>
</body>
</html>
